/*
 *  所有的建筑信息集合
 */
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Dolls
{
    //建筑类型
    public enum eBuildingType
    {
        Null = 0,
        MINEFACTORY, //资源工厂
        PRODUCTFACTORY, //制造工厂
        HATCH,       //孵化池
        RESEARCH,     //研究场
        TRANSFORM,    //传送门
    }

    /// <summary>
    /// 建筑单位
    /// </summary>
    public class cBuild
    {
        public eBuildingType buildingType;
        public const int nakaMaxNum = 5;
        public int[] nakaArr = new int[nakaMaxNum]; //娜卡列表
    }

    //矿厂
    public class CMineFactory: cBuild
    {
        public float mResCollectionV; //采集速度
        public float mResCrystal; //采集的水晶
        public float mresMeal;//采集的超级晶体
    }

    //生产厂
    public class CProductFactory : cBuild
    {
        public eMachineType mMachineType ; //当前类型
        public int mNum;                    //待生产数量
        public float mProcuctBT;            //上次生产时间
    }

    /// <summary>
    /// 传送门
    /// </summary>
    public class CTransform : cBuild
    {
        public float coolDownBT; //冷却时间
    }

    /// <summary>
    /// 所有建造建筑管理类
    /// </summary>
    public class cBuildingManager
    {
        List<CTransform> mTransBuildings = new List<CTransform>();
        List<CMineFactory> mMines = new List<CMineFactory>();
        List<CProductFactory> mProducts = new List<CProductFactory>(); 
    }

}

